import request from '@/utils/request'

// 查询销售排班列表
export function listSaleScheduling(query) {
  return request({
    url: '/business/saleScheduling/list',
    method: 'get',
    params: query
  })
}

// 查询销售排班详细
export function getSaleScheduling(id) {
  return request({
    url: '/business/saleScheduling/' + id,
    method: 'get'
  })
}

// 新增销售排班
export function addSaleScheduling(data) {
  return request({
    url: '/business/saleScheduling',
    method: 'post',
    data: data
  })
}

// 修改销售排班
export function updateSaleScheduling(data) {
  return request({
    url: '/business/saleScheduling',
    method: 'put',
    data: data
  })
}

// 删除销售排班
export function delSaleScheduling(id) {
  return request({
    url: '/business/saleScheduling/' + id,
    method: 'delete'
  })
}
